<template>
    <div>
        <cardChartContent :cdata="chartData" />
    </div>
</template>

<script>
import cardChartContent from './chart.vue'
import { mapState } from 'vuex'
import axios from 'axios'
export default {
    name: 'cardChartContainer',
    components: {
        cardChartContent
    },
    data() {
        return {
            chartData: {
                "months": [
                    "January",
                    "February",
                    "March",
                    "April",
                    "May",
                    "June",
                    "July",
                    "August",
                    "September",
                    "October",
                    "November",
                    "December"
                ],
                "year": [
                    "2015",
                    "2016",
                    "2017",
                    "2018",
                    "2019",
                    "2020",
                    "2021",
                    "2022",
                    "2023",
                    "2024"
                ],
                "stardata": [
                    [
                        0,
                        5,
                        20
                    ],
                    [
                        0,
                        6,
                        422
                    ],
                    [
                        0,
                        7,
                        635
                    ],
                    [
                        0,
                        8,
                        234
                    ],
                    [
                        0,
                        9,
                        178
                    ],
                    [
                        0,
                        10,
                        331
                    ],
                    [
                        0,
                        11,
                        299
                    ],
                    [
                        1,
                        0,
                        324
                    ],
                    [
                        1,
                        1,
                        219
                    ],
                    [
                        1,
                        2,
                        509
                    ],
                    [
                        1,
                        3,
                        511
                    ],
                    [
                        1,
                        4,
                        550
                    ],
                    [
                        1,
                        5,
                        396
                    ],
                    [
                        1,
                        6,
                        514
                    ],
                    [
                        1,
                        7,
                        611
                    ],
                    [
                        1,
                        8,
                        560
                    ],
                    [
                        1,
                        9,
                        626
                    ],
                    [
                        1,
                        10,
                        1902
                    ],
                    [
                        1,
                        11,
                        1045
                    ],
                    [
                        2,
                        0,
                        724
                    ],
                    [
                        2,
                        1,
                        1089
                    ],
                    [
                        2,
                        2,
                        1233
                    ],
                    [
                        2,
                        3,
                        1065
                    ],
                    [
                        2,
                        4,
                        983
                    ],
                    [
                        2,
                        5,
                        1016
                    ],
                    [
                        2,
                        6,
                        1039
                    ],
                    [
                        2,
                        7,
                        1193
                    ],
                    [
                        2,
                        8,
                        990
                    ],
                    [
                        2,
                        9,
                        1266
                    ],
                    [
                        2,
                        10,
                        1361
                    ],
                    [
                        2,
                        11,
                        1749
                    ],
                    [
                        3,
                        0,
                        2000
                    ],
                    [
                        3,
                        1,
                        1113
                    ],
                    [
                        3,
                        2,
                        1689
                    ],
                    [
                        3,
                        3,
                        1285
                    ],
                    [
                        3,
                        4,
                        1381
                    ],
                    [
                        3,
                        5,
                        1280
                    ],
                    [
                        3,
                        6,
                        1349
                    ],
                    [
                        3,
                        7,
                        1353
                    ],
                    [
                        3,
                        8,
                        1265
                    ],
                    [
                        3,
                        9,
                        1041
                    ],
                    [
                        3,
                        10,
                        1188
                    ],
                    [
                        3,
                        11,
                        4216
                    ],
                    [
                        4,
                        0,
                        1655
                    ],
                    [
                        4,
                        1,
                        1176
                    ],
                    [
                        4,
                        2,
                        1666
                    ],
                    [
                        4,
                        3,
                        1677
                    ],
                    [
                        4,
                        4,
                        1545
                    ],
                    [
                        4,
                        5,
                        1302
                    ],
                    [
                        4,
                        6,
                        1733
                    ],
                    [
                        4,
                        7,
                        1440
                    ],
                    [
                        4,
                        8,
                        1145
                    ],
                    [
                        4,
                        9,
                        1224
                    ],
                    [
                        4,
                        10,
                        1097
                    ],
                    [
                        4,
                        11,
                        1131
                    ],
                    [
                        5,
                        0,
                        1155
                    ],
                    [
                        5,
                        1,
                        1271
                    ],
                    [
                        5,
                        2,
                        1280
                    ],
                    [
                        5,
                        3,
                        1214
                    ],
                    [
                        5,
                        4,
                        1156
                    ],
                    [
                        5,
                        5,
                        1128
                    ],
                    [
                        5,
                        6,
                        1172
                    ],
                    [
                        5,
                        7,
                        918
                    ],
                    [
                        5,
                        8,
                        918
                    ],
                    [
                        5,
                        9,
                        772
                    ],
                    [
                        5,
                        10,
                        860
                    ],
                    [
                        5,
                        11,
                        868
                    ],
                    [
                        6,
                        0,
                        861
                    ],
                    [
                        6,
                        1,
                        4714
                    ],
                    [
                        6,
                        2,
                        1390
                    ],
                    [
                        6,
                        3,
                        1054
                    ],
                    [
                        6,
                        4,
                        65947
                    ],
                    [
                        6,
                        5,
                        1181
                    ],
                    [
                        6,
                        6,
                        913
                    ],
                    [
                        6,
                        7,
                        785
                    ],
                    [
                        6,
                        8,
                        788
                    ],
                    [
                        6,
                        9,
                        857
                    ],
                    [
                        6,
                        10,
                        872
                    ],
                    [
                        6,
                        11,
                        1057
                    ],
                    [
                        7,
                        0,
                        1042
                    ],
                    [
                        7,
                        1,
                        1017
                    ],
                    [
                        7,
                        2,
                        908
                    ],
                    [
                        7,
                        3,
                        880
                    ],
                    [
                        7,
                        4,
                        882
                    ],
                    [
                        7,
                        5,
                        518
                    ],
                    [
                        7,
                        6,
                        554
                    ],
                    [
                        7,
                        7,
                        593
                    ],
                    [
                        7,
                        8,
                        506
                    ],
                    [
                        7,
                        9,
                        516
                    ],
                    [
                        7,
                        10,
                        804
                    ],
                    [
                        7,
                        11,
                        590
                    ],
                    [
                        8,
                        0,
                        644
                    ],
                    [
                        8,
                        1,
                        633
                    ],
                    [
                        8,
                        2,
                        745
                    ],
                    [
                        8,
                        3,
                        559
                    ],
                    [
                        8,
                        4,
                        553
                    ],
                    [
                        8,
                        5,
                        537
                    ],
                    [
                        8,
                        6,
                        595
                    ],
                    [
                        8,
                        7,
                        620
                    ],
                    [
                        8,
                        8,
                        493
                    ],
                    [
                        8,
                        9,
                        514
                    ],
                    [
                        8,
                        10,
                        611
                    ],
                    [
                        8,
                        11,
                        510
                    ],
                    [
                        9,
                        0,
                        504
                    ],
                    [
                        9,
                        1,
                        450
                    ],
                    [
                        9,
                        2,
                        622
                    ],
                    [
                        9,
                        3,
                        477
                    ],
                    [
                        9,
                        4,
                        442
                    ],
                    [
                        9,
                        5,
                        413
                    ],
                    [
                        9,
                        6,
                        618
                    ],
                    [
                        9,
                        7,
                        484
                    ],
                    [
                        9,
                        8,
                        418
                    ],
                    [
                        9,
                        9,
                        464
                    ]
                ],
                "forkdata": [
                    [
                        0,
                        5,
                        3
                    ],
                    [
                        0,
                        6,
                        45
                    ],
                    [
                        0,
                        7,
                        91
                    ],
                    [
                        0,
                        8,
                        49
                    ],
                    [
                        0,
                        9,
                        42
                    ],
                    [
                        0,
                        10,
                        52
                    ],
                    [
                        0,
                        11,
                        70
                    ],
                    [
                        1,
                        0,
                        64
                    ],
                    [
                        1,
                        1,
                        35
                    ],
                    [
                        1,
                        2,
                        120
                    ],
                    [
                        1,
                        3,
                        122
                    ],
                    [
                        1,
                        4,
                        104
                    ],
                    [
                        1,
                        5,
                        100
                    ],
                    [
                        1,
                        6,
                        107
                    ],
                    [
                        1,
                        7,
                        155
                    ],
                    [
                        1,
                        8,
                        186
                    ],
                    [
                        1,
                        9,
                        169
                    ],
                    [
                        1,
                        10,
                        216
                    ],
                    [
                        1,
                        11,
                        233
                    ],
                    [
                        2,
                        0,
                        174
                    ],
                    [
                        2,
                        1,
                        282
                    ],
                    [
                        2,
                        2,
                        493
                    ],
                    [
                        2,
                        3,
                        386
                    ],
                    [
                        2,
                        4,
                        428
                    ],
                    [
                        2,
                        5,
                        455
                    ],
                    [
                        2,
                        6,
                        530
                    ],
                    [
                        2,
                        7,
                        532
                    ],
                    [
                        2,
                        8,
                        489
                    ],
                    [
                        2,
                        9,
                        459
                    ],
                    [
                        2,
                        10,
                        505
                    ],
                    [
                        2,
                        11,
                        618
                    ],
                    [
                        3,
                        0,
                        707
                    ],
                    [
                        3,
                        1,
                        416
                    ],
                    [
                        3,
                        2,
                        720
                    ],
                    [
                        3,
                        3,
                        559
                    ],
                    [
                        3,
                        4,
                        634
                    ],
                    [
                        3,
                        5,
                        601
                    ],
                    [
                        3,
                        6,
                        687
                    ],
                    [
                        3,
                        7,
                        662
                    ],
                    [
                        3,
                        8,
                        654
                    ],
                    [
                        3,
                        9,
                        577
                    ],
                    [
                        3,
                        10,
                        650
                    ],
                    [
                        3,
                        11,
                        1057
                    ],
                    [
                        4,
                        0,
                        927
                    ],
                    [
                        4,
                        1,
                        717
                    ],
                    [
                        4,
                        2,
                        962
                    ],
                    [
                        4,
                        3,
                        708
                    ],
                    [
                        4,
                        4,
                        690
                    ],
                    [
                        4,
                        5,
                        661
                    ],
                    [
                        4,
                        6,
                        847
                    ],
                    [
                        4,
                        7,
                        690
                    ],
                    [
                        4,
                        8,
                        547
                    ],
                    [
                        4,
                        9,
                        629
                    ],
                    [
                        4,
                        10,
                        611
                    ],
                    [
                        4,
                        11,
                        602
                    ],
                    [
                        5,
                        0,
                        490
                    ],
                    [
                        5,
                        1,
                        449
                    ],
                    [
                        5,
                        2,
                        761
                    ],
                    [
                        5,
                        3,
                        788
                    ],
                    [
                        5,
                        4,
                        718
                    ],
                    [
                        5,
                        5,
                        745
                    ],
                    [
                        5,
                        6,
                        776
                    ],
                    [
                        5,
                        7,
                        634
                    ],
                    [
                        5,
                        8,
                        669
                    ],
                    [
                        5,
                        9,
                        595
                    ],
                    [
                        5,
                        10,
                        700
                    ],
                    [
                        5,
                        11,
                        729
                    ],
                    [
                        6,
                        0,
                        617
                    ],
                    [
                        6,
                        1,
                        617
                    ],
                    [
                        6,
                        2,
                        688
                    ],
                    [
                        6,
                        3,
                        655
                    ],
                    [
                        6,
                        4,
                        662
                    ],
                    [
                        6,
                        5,
                        739
                    ],
                    [
                        6,
                        6,
                        754
                    ],
                    [
                        6,
                        7,
                        656
                    ],
                    [
                        6,
                        8,
                        719
                    ],
                    [
                        6,
                        9,
                        692
                    ],
                    [
                        6,
                        10,
                        682
                    ],
                    [
                        6,
                        11,
                        687
                    ],
                    [
                        7,
                        0,
                        569
                    ],
                    [
                        7,
                        1,
                        538
                    ],
                    [
                        7,
                        2,
                        705
                    ],
                    [
                        7,
                        3,
                        664
                    ],
                    [
                        7,
                        4,
                        595
                    ],
                    [
                        7,
                        5,
                        563
                    ],
                    [
                        7,
                        6,
                        608
                    ],
                    [
                        7,
                        7,
                        630
                    ],
                    [
                        7,
                        8,
                        595
                    ],
                    [
                        7,
                        9,
                        543
                    ],
                    [
                        7,
                        10,
                        674
                    ],
                    [
                        7,
                        11,
                        642
                    ],
                    [
                        8,
                        0,
                        596
                    ],
                    [
                        8,
                        1,
                        656
                    ],
                    [
                        8,
                        2,
                        388
                    ],
                    [
                        8,
                        3,
                        685
                    ],
                    [
                        8,
                        4,
                        682
                    ],
                    [
                        8,
                        5,
                        587
                    ],
                    [
                        8,
                        6,
                        647
                    ],
                    [
                        8,
                        7,
                        681
                    ],
                    [
                        8,
                        8,
                        693
                    ],
                    [
                        8,
                        9,
                        700
                    ],
                    [
                        8,
                        10,
                        748
                    ],
                    [
                        8,
                        11,
                        664
                    ],
                    [
                        9,
                        0,
                        668
                    ],
                    [
                        9,
                        1,
                        677
                    ],
                    [
                        9,
                        2,
                        889
                    ],
                    [
                        9,
                        3,
                        884
                    ],
                    [
                        9,
                        4,
                        851
                    ],
                    [
                        9,
                        5,
                        804
                    ],
                    [
                        9,
                        6,
                        812
                    ],
                    [
                        9,
                        7,
                        765
                    ],
                    [
                        9,
                        8,
                        657
                    ],
                    [
                        9,
                        9,
                        608
                    ]
                ],
                "issuedata": [
                    [
                        0,
                        5,
                        13
                    ],
                    [
                        0,
                        6,
                        25
                    ],
                    [
                        0,
                        7,
                        66
                    ],
                    [
                        0,
                        8,
                        109
                    ],
                    [
                        0,
                        9,
                        61
                    ],
                    [
                        0,
                        10,
                        115
                    ],
                    [
                        0,
                        11,
                        145
                    ],
                    [
                        1,
                        0,
                        137
                    ],
                    [
                        1,
                        1,
                        105
                    ],
                    [
                        1,
                        2,
                        165
                    ],
                    [
                        1,
                        3,
                        208
                    ],
                    [
                        1,
                        4,
                        319
                    ],
                    [
                        1,
                        5,
                        272
                    ],
                    [
                        1,
                        6,
                        269
                    ],
                    [
                        1,
                        7,
                        285
                    ],
                    [
                        1,
                        8,
                        262
                    ],
                    [
                        1,
                        9,
                        330
                    ],
                    [
                        1,
                        10,
                        344
                    ],
                    [
                        1,
                        11,
                        297
                    ],
                    [
                        2,
                        0,
                        244
                    ],
                    [
                        2,
                        1,
                        313
                    ],
                    [
                        2,
                        2,
                        377
                    ],
                    [
                        2,
                        3,
                        329
                    ],
                    [
                        2,
                        4,
                        288
                    ],
                    [
                        2,
                        5,
                        334
                    ],
                    [
                        2,
                        6,
                        290
                    ],
                    [
                        2,
                        7,
                        292
                    ],
                    [
                        2,
                        8,
                        279
                    ],
                    [
                        2,
                        9,
                        230
                    ],
                    [
                        2,
                        10,
                        265
                    ],
                    [
                        2,
                        11,
                        348
                    ],
                    [
                        3,
                        0,
                        327
                    ],
                    [
                        3,
                        1,
                        200
                    ],
                    [
                        3,
                        2,
                        336
                    ],
                    [
                        3,
                        3,
                        296
                    ],
                    [
                        3,
                        4,
                        314
                    ],
                    [
                        3,
                        5,
                        303
                    ],
                    [
                        3,
                        6,
                        305
                    ],
                    [
                        3,
                        7,
                        312
                    ],
                    [
                        3,
                        8,
                        359
                    ],
                    [
                        3,
                        9,
                        283
                    ],
                    [
                        3,
                        10,
                        314
                    ],
                    [
                        3,
                        11,
                        439
                    ],
                    [
                        4,
                        0,
                        365
                    ],
                    [
                        4,
                        1,
                        287
                    ],
                    [
                        4,
                        2,
                        456
                    ],
                    [
                        4,
                        3,
                        452
                    ],
                    [
                        4,
                        4,
                        369
                    ],
                    [
                        4,
                        5,
                        328
                    ],
                    [
                        4,
                        6,
                        467
                    ],
                    [
                        4,
                        7,
                        388
                    ],
                    [
                        4,
                        8,
                        329
                    ],
                    [
                        4,
                        9,
                        299
                    ],
                    [
                        4,
                        10,
                        345
                    ],
                    [
                        4,
                        11,
                        358
                    ],
                    [
                        5,
                        0,
                        380
                    ],
                    [
                        5,
                        1,
                        319
                    ],
                    [
                        5,
                        2,
                        732
                    ],
                    [
                        5,
                        3,
                        650
                    ],
                    [
                        5,
                        4,
                        474
                    ],
                    [
                        5,
                        5,
                        412
                    ],
                    [
                        5,
                        6,
                        368
                    ],
                    [
                        5,
                        7,
                        353
                    ],
                    [
                        5,
                        8,
                        320
                    ],
                    [
                        5,
                        9,
                        319
                    ],
                    [
                        5,
                        10,
                        398
                    ],
                    [
                        5,
                        11,
                        356
                    ],
                    [
                        6,
                        0,
                        306
                    ],
                    [
                        6,
                        1,
                        229
                    ],
                    [
                        6,
                        2,
                        262
                    ],
                    [
                        6,
                        3,
                        250
                    ],
                    [
                        6,
                        4,
                        238
                    ],
                    [
                        6,
                        5,
                        277
                    ],
                    [
                        6,
                        6,
                        244
                    ],
                    [
                        6,
                        7,
                        208
                    ],
                    [
                        6,
                        8,
                        200
                    ],
                    [
                        6,
                        9,
                        226
                    ],
                    [
                        6,
                        10,
                        246
                    ],
                    [
                        6,
                        11,
                        258
                    ],
                    [
                        7,
                        0,
                        220
                    ],
                    [
                        7,
                        1,
                        157
                    ],
                    [
                        7,
                        2,
                        261
                    ],
                    [
                        7,
                        3,
                        224
                    ],
                    [
                        7,
                        4,
                        200
                    ],
                    [
                        7,
                        5,
                        211
                    ],
                    [
                        7,
                        6,
                        229
                    ],
                    [
                        7,
                        7,
                        231
                    ],
                    [
                        7,
                        8,
                        189
                    ],
                    [
                        7,
                        9,
                        152
                    ],
                    [
                        7,
                        10,
                        329
                    ],
                    [
                        7,
                        11,
                        335
                    ],
                    [
                        8,
                        0,
                        211
                    ],
                    [
                        8,
                        1,
                        198
                    ],
                    [
                        8,
                        2,
                        250
                    ],
                    [
                        8,
                        3,
                        213
                    ],
                    [
                        8,
                        4,
                        234
                    ],
                    [
                        8,
                        5,
                        179
                    ],
                    [
                        8,
                        6,
                        246
                    ],
                    [
                        8,
                        7,
                        282
                    ],
                    [
                        8,
                        8,
                        255
                    ],
                    [
                        8,
                        9,
                        190
                    ],
                    [
                        8,
                        10,
                        243
                    ],
                    [
                        8,
                        11,
                        220
                    ],
                    [
                        9,
                        0,
                        233
                    ],
                    [
                        9,
                        1,
                        164
                    ],
                    [
                        9,
                        2,
                        215
                    ],
                    [
                        9,
                        3,
                        216
                    ],
                    [
                        9,
                        4,
                        187
                    ],
                    [
                        9,
                        5,
                        195
                    ],
                    [
                        9,
                        6,
                        246
                    ],
                    [
                        9,
                        7,
                        200
                    ],
                    [
                        9,
                        8,
                        188
                    ],
                    [
                        9,
                        9,
                        165
                    ]
                ],
                "requestdata": [
                    [
                        0,
                        5,
                        10
                    ],
                    [
                        0,
                        6,
                        52
                    ],
                    [
                        0,
                        7,
                        60
                    ],
                    [
                        0,
                        8,
                        25
                    ],
                    [
                        0,
                        9,
                        41
                    ],
                    [
                        0,
                        10,
                        42
                    ],
                    [
                        0,
                        11,
                        43
                    ],
                    [
                        1,
                        0,
                        34
                    ],
                    [
                        1,
                        1,
                        31
                    ],
                    [
                        1,
                        2,
                        62
                    ],
                    [
                        1,
                        3,
                        46
                    ],
                    [
                        1,
                        4,
                        59
                    ],
                    [
                        1,
                        5,
                        52
                    ],
                    [
                        1,
                        6,
                        59
                    ],
                    [
                        1,
                        7,
                        74
                    ],
                    [
                        1,
                        8,
                        109
                    ],
                    [
                        1,
                        9,
                        95
                    ],
                    [
                        1,
                        10,
                        100
                    ],
                    [
                        1,
                        11,
                        67
                    ],
                    [
                        2,
                        0,
                        80
                    ],
                    [
                        2,
                        1,
                        87
                    ],
                    [
                        2,
                        2,
                        128
                    ],
                    [
                        2,
                        3,
                        74
                    ],
                    [
                        2,
                        4,
                        74
                    ],
                    [
                        2,
                        5,
                        58
                    ],
                    [
                        2,
                        6,
                        73
                    ],
                    [
                        2,
                        7,
                        92
                    ],
                    [
                        2,
                        8,
                        117
                    ],
                    [
                        2,
                        9,
                        66
                    ],
                    [
                        2,
                        10,
                        61
                    ],
                    [
                        2,
                        11,
                        70
                    ],
                    [
                        3,
                        0,
                        86
                    ],
                    [
                        3,
                        1,
                        60
                    ],
                    [
                        3,
                        2,
                        99
                    ],
                    [
                        3,
                        3,
                        89
                    ],
                    [
                        3,
                        4,
                        78
                    ],
                    [
                        3,
                        5,
                        70
                    ],
                    [
                        3,
                        6,
                        96
                    ],
                    [
                        3,
                        7,
                        99
                    ],
                    [
                        3,
                        8,
                        93
                    ],
                    [
                        3,
                        9,
                        88
                    ],
                    [
                        3,
                        10,
                        111
                    ],
                    [
                        3,
                        11,
                        133
                    ],
                    [
                        4,
                        0,
                        187
                    ],
                    [
                        4,
                        1,
                        156
                    ],
                    [
                        4,
                        2,
                        216
                    ],
                    [
                        4,
                        3,
                        204
                    ],
                    [
                        4,
                        4,
                        156
                    ],
                    [
                        4,
                        5,
                        154
                    ],
                    [
                        4,
                        6,
                        181
                    ],
                    [
                        4,
                        7,
                        198
                    ],
                    [
                        4,
                        8,
                        148
                    ],
                    [
                        4,
                        9,
                        138
                    ],
                    [
                        4,
                        10,
                        166
                    ],
                    [
                        4,
                        11,
                        204
                    ],
                    [
                        5,
                        0,
                        224
                    ],
                    [
                        5,
                        1,
                        252
                    ],
                    [
                        5,
                        2,
                        376
                    ],
                    [
                        5,
                        3,
                        369
                    ],
                    [
                        5,
                        4,
                        383
                    ],
                    [
                        5,
                        5,
                        301
                    ],
                    [
                        5,
                        6,
                        271
                    ],
                    [
                        5,
                        7,
                        194
                    ],
                    [
                        5,
                        8,
                        156
                    ],
                    [
                        5,
                        9,
                        205
                    ],
                    [
                        5,
                        10,
                        232
                    ],
                    [
                        5,
                        11,
                        170
                    ],
                    [
                        6,
                        0,
                        155
                    ],
                    [
                        6,
                        1,
                        147
                    ],
                    [
                        6,
                        2,
                        144
                    ],
                    [
                        6,
                        3,
                        110
                    ],
                    [
                        6,
                        4,
                        129
                    ],
                    [
                        6,
                        5,
                        106
                    ],
                    [
                        6,
                        6,
                        111
                    ],
                    [
                        6,
                        7,
                        85
                    ],
                    [
                        6,
                        8,
                        117
                    ],
                    [
                        6,
                        9,
                        106
                    ],
                    [
                        6,
                        10,
                        104
                    ],
                    [
                        6,
                        11,
                        107
                    ],
                    [
                        7,
                        0,
                        122
                    ],
                    [
                        7,
                        1,
                        104
                    ],
                    [
                        7,
                        2,
                        251
                    ],
                    [
                        7,
                        3,
                        245
                    ],
                    [
                        7,
                        4,
                        216
                    ],
                    [
                        7,
                        5,
                        192
                    ],
                    [
                        7,
                        6,
                        167
                    ],
                    [
                        7,
                        7,
                        230
                    ],
                    [
                        7,
                        8,
                        225
                    ],
                    [
                        7,
                        9,
                        259
                    ],
                    [
                        7,
                        10,
                        373
                    ],
                    [
                        7,
                        11,
                        338
                    ],
                    [
                        8,
                        0,
                        242
                    ],
                    [
                        8,
                        1,
                        211
                    ],
                    [
                        8,
                        2,
                        226
                    ],
                    [
                        8,
                        3,
                        204
                    ],
                    [
                        8,
                        4,
                        293
                    ],
                    [
                        8,
                        5,
                        240
                    ],
                    [
                        8,
                        6,
                        268
                    ],
                    [
                        8,
                        7,
                        256
                    ],
                    [
                        8,
                        8,
                        246
                    ],
                    [
                        8,
                        9,
                        198
                    ],
                    [
                        8,
                        10,
                        251
                    ],
                    [
                        8,
                        11,
                        194
                    ],
                    [
                        9,
                        0,
                        230
                    ],
                    [
                        9,
                        1,
                        182
                    ],
                    [
                        9,
                        2,
                        271
                    ],
                    [
                        9,
                        3,
                        245
                    ],
                    [
                        9,
                        4,
                        188
                    ],
                    [
                        9,
                        5,
                        255
                    ],
                    [
                        9,
                        6,
                        221
                    ],
                    [
                        9,
                        7,
                        226
                    ],
                    [
                        9,
                        8,
                        189
                    ],
                    [
                        9,
                        9,
                        132
                    ]
                ]
            }
        };
    },
    mounted() {
    },
    computed: {
        ...mapState(['currentRepository'])
    },
    methods: {
        async fetchData(path) {
            const datePattern = /^\d{4}-(0[1-9]|1[0-2])$/;
            const filterData = (datas) => {
                let filteredDatas = {};
                for (const key in datas) {
                    if (datePattern.test(key)) {
                        filteredDatas[key] = datas[key];
                    }
                }
                return filteredDatas;
            }
            let starResponse = await axios.get(path + '/stars.json');
            let starData = await starResponse.data;
            starData = filterData(starData);
            let forkResponse = await axios.get(path + '/technical_fork.json');
            let forkData = await forkResponse.data;
            forkData = filterData(forkData);
            let issueResponse = await axios.get(path + '/issues_new.json');
            let issueData = await issueResponse.data;
            issueData = filterData(issueData);
            let requestResponse = await axios.get(path + '/change_requests.json');
            let requestData = await requestResponse.data;
            requestData = filterData(requestData);


            // 获取所有的键
            let starKeys = Object.keys(starData);
            let forkKeys = Object.keys(forkData);
            let issueKeys = Object.keys(issueData);
            let requestKeys = Object.keys(requestData);

            // 找出公共的键
            let commonKeys = starKeys.filter(value => forkKeys.includes(value) && issueKeys.includes(value) && requestKeys.includes(value));
            let firstyear = parseInt(commonKeys[0].split('-')[0]);
            let data = {
                months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
                year: [...new Set(commonKeys.map(key => key.split('-')[0]))],
                stardata: commonKeys.map((key) => {
                    const monthIndex = parseInt(key.split('-')[1]) - 1; // 获取月份索引 (0-11)
                    const yearIndex = parseInt(key.split('-')[0]) - firstyear; // 获取相对于第一年的年份索引
                    const value = starData[key];
                    return [yearIndex, monthIndex, value]; // 转换为 [年份索引, 月份索引, 值] 格式
                }),
                forkdata: commonKeys.map((key) => {
                    const monthIndex = parseInt(key.split('-')[1]) - 1;
                    const yearIndex = parseInt(key.split('-')[0]) - firstyear;
                    const value = forkData[key];
                    return [yearIndex, monthIndex, value];
                }),
                issuedata: commonKeys.map((key) => {
                    const monthIndex = parseInt(key.split('-')[1]) - 1;
                    const yearIndex = parseInt(key.split('-')[0]) - firstyear;
                    const value = issueData[key];
                    return [yearIndex, monthIndex, value];
                }),
                requestdata: commonKeys.map((key) => {
                    const monthIndex = parseInt(key.split('-')[1]) - 1;
                    const yearIndex = parseInt(key.split('-')[0]) - firstyear;
                    const value = requestData[key];
                    return [yearIndex, monthIndex, value];
                }),

            }

            return data
        }
    },
    watch: {
        currentRepository: {
            handler: async function (newVal) {
                this.chartData = await this.fetchData('https://oss.x-lab.info/open_digger/github/' + newVal);
            },
            deep: true

        }
    }
}
</script>